package com.hnzq.cloud.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * <p>
 * 
 * </p>
 *
 * @author jams
 * @since 2022-02-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Document(indexName = "goods")
public class FreGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品表的主键
     */
    @Id
    @TableId(value = "goods_id", type = IdType.AUTO)
    private Integer goodsId;

    /**
     * 商品名
     */
    private String goodsName;

    /**
     * 商品类型
     */
    private String typeName;

    /**
     * 商品描述
     */
    private String goodsMessage;

    /**
     * 商品产地
     */
    private String goodsAddr;

    /**
     * 商品状态
     */
    private Integer goodsStatus;

    /**
     * 是否删除（逻辑删除）
     */
    private Integer isDelete;

    /**
     * 商品描述图片
     */
    private String goodsDescimg;

    private LocalDateTime rowCreateTime;

    private LocalDateTime rowUpdateTime;

    /**
     * 商品价格
     */
    private BigDecimal goodsPrice;

    /**
     * 仓库id
     */
    private Integer warehouseId;

    /**
     * 商品库存
     */
    private Integer goodsStock;

    /**
     * 商品保质期
     */
    private String goodsFreshtime;

    /**
     * 商品生产日期
     */
    private String goodsBirthtime;

    /**
     * 商品折扣
     */
    private BigDecimal goodsDiscount;

    /**
     * 佣金返点
     */
    private BigDecimal balanceconfPercent;
}
